package com.itheima.zy;

public class Test15 {
    public static void main(String[] args) {
        int[] num = {125, 58, 354, 265, 147, 95};
        for (int i = 0, b = num.length - 1; i < b; i++, b--) {
            int temp = num[i];
            num[i] = num[b];
            num[b] = temp;
        }

        for (int i = 0; i < num.length; i++) {
            System.out.println(num[i]);
        }


    }
}
